-
Notifications
You must be signed in to change notification settings - Fork 37
Geometric Contact Potential #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Removed tangents.cpp and tangents.hpp from the IPC utility source files. - Deleted finitediff.hpp as it was no longer needed. - Updated MatrixCache.cpp to improve variable naming for clarity and consistency. - Cleaned up CMakeLists.txt by removing references to tangents files. - Deleted obsolete test data files related to nonlinear solve iterations and simple 2D cases. - Adjusted test configurations to point to the correct data directory structure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments. I'll finish reviewing this when I have some more downtime.
src/ipc/distance/distance_type.hpp
Outdated
|
||
/// @brief Closest pair between a point and point. | ||
enum class PointPointDistanceType { | ||
AUTO ///< Automatically determine the closest pair. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should just be P_P?
- Changed `constexpr static` to `static constexpr` for consistency - Updated member variable naming to match convention - Renamed and updated include paths for utility headers to follow a consistent naming scheme (e.g., MaybeParallelFor.hpp to maybe_parallel_for.hpp). - Removed par_for.hpp and par_for.cpp files
/// @brief Face-vertex tangential collisions. | ||
std::vector<FaceVertexTangentialCollision> fv_collisions; | ||
|
||
double barrier_stiffness_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this really be here? Perhaps its better place in the TangentialPotential class?
/// @brief Normal force magnitude | ||
double normal_force_magnitude = 0; | ||
|
||
std::shared_ptr<SmoothCollision> smooth_collision = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add doxygen comment
const std::function<double(double, double)>& blend_mu = | ||
default_blend_mu); | ||
|
||
void build_for_smooth_contact( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment
…rove parameter naming
Description
Implementation of Siggraph 2025 paper Geometric Contact Potential. The implementation includes the collision and friction potential, their gradient and Hessian.
Type of change
Please delete options that are not relevant.
Checklist